//
//  FilterHeaderView.m
//  New_Runway
//
//  Created by mack on 2018/2/3.
//  Copyright © 2018年 NelsonJ. All rights reserved.
//

#import "FilterHeaderView.h"

@implementation FilterHeaderView


-(instancetype)initWithFrame:(CGRect)frame{
    self =[ super initWithFrame:frame];
    if (self) {
        [self addSubView];
    }
    return self;
}
-(void)addSubView{
    
    UILabel *titleL = [[UILabel alloc] init];
    titleL.textColor = MAIN_FONT_COLOR();
    titleL.font = [UIFont systemFontOfSize:12];
    [self addSubview:titleL];
    kSelfWeak;
    [titleL mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(weakSelf).mas_offset(14);
        make.centerY.equalTo(weakSelf);
    }];
    self.titleL = titleL;
    
    self.valueL = [[UILabel alloc] init];
     self.valueL.textColor = MAIN_NAV_COLOR();
     self.valueL.font = [UIFont systemFontOfSize:14];
    [self addSubview:self.valueL];
    [weakSelf.valueL mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(titleL.mas_right).mas_offset(3);
        make.centerY.equalTo(titleL);
    }];
    
}
@end
